import request, {requeste} from "../utils/request";
/**
 * 查找
 * @param params
 * @returns {Promise.<*>}
 */
export async function queryAdConfigruation(params) {
    return requeste('AdConfigruationService', 'queryAdConfigruation', {
        method: 'POST',
        body: params
    });
}

/**
 * 增加
 * @param params
 * @returns {Promise.<*>}
 */
export async function addAdConfigruation(params) {
    return requeste('AdConfigruationService','addAdConfigruation', {
        method: 'POST',
        body: params,
    });
}

/**
 * 删除
 * @param params
 * @returns {Promise.<*>}
 */
export async function delAdConfigruation(params) {
    return requeste('AdConfigruationService','delAdConfigruation', {
        method: 'POST',
        body: params,
    });
}

/**
 * 更新
 * @param params
 * @returns {Promise.<*>}
 */
export async function modAdConfigruation(params) {
    return requeste('AdConfigruationService','modAdConfigruation', {
        method: 'POST',
        body: params,
    });
}

/**
 * 查询广告推荐转入地址
 * @param params
 * @returns {Promise.<*>}
 */
export async function queryYyDetailUrl(params) {
    return requeste('YyDetailUrlService','queryYyDetailUrl', {
        method: 'POST',
        body: params,
    });
}

/**
 * 新增广告推荐装入地址
 * @param params
 * @returns {Promise.<*>}
 */
export async function addYyDetailUrl(params) {
    return requeste('YyDetailUrlService','addYyDetailUrl', {
        method: 'POST',
        body: params,
    });
}

/**
 * 删除广告推荐转入地址
 * @param params
 * @returns {Promise.<*>}
 */
export async function delYyDetailUrl(params) {
    return requeste('YyDetailUrlService','delYyDetailUrl', {
        method: 'POST',
        body: params,
    });
}

/**
 * 修改广告推荐转入地址
 * @param params
 * @returns {Promise.<*>}
 */
export async function modYyDetailUrl(params) {
    return requeste('YyDetailUrlService','modYyDetailUrl', {
        method: 'POST',
        body: params,
    });
}

/**
 * 查找全部广告推荐转入地址
 * @param params
 * @returns {Promise.<Object>}
 */
export async function queryAllYyDetailUrl(params) {
    return requeste('YyDetailUrlService', 'queryAllYyDetailUrl', {
        method: 'POST',
        body: params,
    });
}

/**
 * 查找全部广告推荐位置配置
 * @param params
 * @returns {Promise.<Object>}
 */
export async function queryAllAdConfigruation(params) {
    return requeste('AdConfigruationService', 'queryAllAdConfigruation', {
        method: 'POST',
        body: params,
    });
}

/**
 * 新增推荐对象
 * @param params
 * @returns {Promise.<*>}
 */
export async function addRecObject(params) {
    return requeste('RecObjectService','addRecObject', {
        method: 'POST',
        body: params,
    });
}

/**
 * 修改推荐对象
 * @param params
 * @returns {Promise.<*>}
 */
export async function modRecObject(params) {
    return requeste('RecObjectService', 'modRecObject', {
        method: 'POST',
        body: params,
    });
}

/**
 * 查询推荐对象
 * @param params
 * @returns {Promise.<*>}
 */
export async function queryRecObject(params) {
    return requeste('RecObjectService','queryRecObject', {
        method: 'POST',
        body: params,
    });
}


/**
 * 删除推荐对象
 * @param params
 * @returns {Promise.<*>}
 */
export async function delRecObject(params) {
    return requeste('RecObjectService','delRecObject', {
        method: 'POST',
        body: params,
    });
}
